<template>
 <div class="topBlock">
    <span class="leftTurn" @click="backPageCur">{{title}}</span>
  </div>
</template>
<script>
export default {
  props: {
    title:{
      type: String,
      default: "",
    },
    path:{
      type: String,
      default: "",
    }
  },
  data() {
    return {
      
    };
  },
  created(){
    console.log(this.$route,'abc');
  },
  mounted() {
   
  },
  watch: {
   
  },
  methods: {
   backPageCur(){
    this.$router.go(-1);
    // if(this.path){
    //  this.$router.replace(this.path);
    // }else{
    //   this.$router.go(-1);
    // }
   }
  },
};
</script>

<style lang="scss" scoped>
  .topBlock {
    width: 100%;
    height: 30px;
    background: transparent;
    line-height: 30px;
    text-align: center;
    position: relative;
    border-bottom: 0.5px solid #f4f4f4;
    .leftTurn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 28px;
      height: 28px;
      left: 5px;
      background: url("../../../../assets/images/leftback.png");
      background-repeat: no-repeat;
      background-size: 100% 100%;
      cursor: pointer;
    }
  }
</style>